package com.ly.heart.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ly.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 销售报价适合客户/销售对象 erp_sale_marked_customer
 *
 * @author wutao
 * @date 2024-07-15
 */
@TableName("erp_sale_marked_customer")
@ApiModel(value = "erp_sale_marked_customer对象", description = "销售报价适合客户/销售")
@Data
public class SaleMarkedCustomerEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 价目表关联的适用销售员/客户主键id
     */
    @TableId(type = IdType.INPUT)
    private String id;

    /**
     * 价目表id
     */
    @ApiModelProperty("价目表id")
    @TableField("marked_price_id")
    @Excel(name = "价目表id")
    private String markedPriceId;

    /**
     * 编码
     */
    @ApiModelProperty("编码")
    @TableField("code")
    @Excel(name = "编码")
    private String code;

    /**
     * 名称
     */
    @ApiModelProperty("名称")
    @TableField("name")
    @Excel(name = "名称")
    private String name;

    /**
     * 类型（1适用销售员2适用客户）
     */
    @TableField("type")
    @ApiModelProperty("类型（1适用销售员2适用客户）")
    @Excel(name = "类型", readConverterExp = "1=适用销售员2适用客户")
    private String type;

    /**
     * 是否默认(1是2否)
     */
    @ApiModelProperty("是否默认(1是2否)")
    @TableField("is_default")
    @Excel(name = "是否默认(1是2否)")
    private String isDefault;

    /**
     * 是否有用(1有效2失效)
     */
    @ApiModelProperty("是否有用(1有效2失效)")
    @TableField("is_used")
    @TableLogic
    @Excel(name = "是否有用(1有效2失效)")
    private String isUsed;


}
